﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;

namespace DriverEDU_UI
{
    /// <summary>
    /// 程序主窗体
    /// </summary>
    public partial class FrmMain : Form
    {
        public static FrmMain frmMain = new FrmMain();

        /// <summary>
        /// 构造函数
        /// </summary>
        public FrmMain()
        {
            InitializeComponent();
            frmMain = this;
        }

        /// <summary>
        /// 程序加载事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FrmMain_Load(object sender, EventArgs e)
        {
            //加载默认页
            FrmHomePage frmHomePage = new FrmHomePage();
            frmHomePage.Show(DockPanelMain);

            //加载菜单栏
            FrmMenu frmMenu = new FrmMenu();
            frmMenu.Show(DockPanelMain, DockState.DockLeft);         //将菜单栏停靠在左边
            DockPanelMain.DockLeftPortion = 240;                    //设置菜单栏宽度240
        }
    }
}
